package com.bookstore.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;

@Data
@TableName("order_items")
@ApiModel(description = "订单详情")
public class OrderItem {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("订单详情ID")
    private Integer orderItemId;

    @ApiModelProperty("订单ID")
    private Integer orderId;

    @ApiModelProperty("图书ID")
    private Integer bookId;

    @ApiModelProperty("购买数量")
    private Integer quantity;

    @ApiModelProperty("单价")
    private BigDecimal unitPrice;
} 